home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 May / Software of the Month Club 1996 May.iso / mac / ISO9660 / ZIPFILES / BMPWIZ.ZIP / FLAG.BAS < prev    next >
Unknown  |  1995-12-12  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert GW-BASIC (document/gwBasic) ext Supported
66% dexvert GFA-BASIC Atari (other/gfaBASICAtari) ext Supported
1% dexvert Amiga BASIC Protected File (other/amigaBASICProtectedFile) ext Unsupported
1% dexvert BAS VBDOS Pro 1.0 Source (other/basVBDOSPro10Source) ext Unsupported
1% dexvert Visual Basic Tokenized Source (other/visualBasicTokenizedSource) ext Unsupported
1% dexvert ZBASIC (other/zbasic) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 1d 05 00 00 0d 0a 27 20 | 46 6c 61 67 20 65 66 66 |......' |Flag eff|
|00000010| 65 63 74 2e 0d 0a 27 20 | 55 73 65 20 63 6f 73 69 |ect...' |Use cosi|
|00000020| 6e 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 6d 6f |n functi|on to mo|
|00000030| 64 69 66 79 20 69 6e 70 | 75 74 20 69 6d 61 67 65 |dify inp|ut image|
|00000040| 20 73 69 6d 75 6c 61 74 | 69 6e 67 20 61 20 66 6c | simulat|ing a fl|
|00000050| 61 67 2c 0d 0a 27 20 75 | 73 69 6e 67 20 61 6c 73 |ag,..' u|sing als|
|00000060| 6f 20 79 20 64 69 66 66 | 65 72 65 6e 74 69 61 6c |o y diff|erential|
|00000070| 20 74 6f 20 6d 6f 64 69 | 66 79 20 62 72 69 67 68 | to modi|fy brigh|
|00000080| 74 6e 65 73 73 2e 0d 0a | 27 20 46 6f 72 20 61 20 |tness...|' For a |
|00000090| 62 65 74 74 65 72 20 61 | 6e 64 20 66 61 73 74 65 |better a|nd faste|
|000000a0| 72 20 72 65 73 75 6c 74 | 20 75 73 65 20 61 20 32 |r result| use a 2|
|000000b0| 34 20 62 69 74 20 6f 75 | 74 70 75 74 2e 0d 0a 0d |4 bit ou|tput....|
|000000c0| 0a 27 20 49 6e 70 75 74 | 3a 09 34 2d 38 2d 32 34 |.' Input|:.4-8-24|
|000000d0| 20 62 69 74 0d 0a 27 20 | 4f 75 74 70 75 74 3a 09 | bit..' |Output:.|
|000000e0| 34 2d 38 2d 32 34 20 62 | 69 74 20 28 32 34 20 72 |4-8-24 b|it (24 r|
|000000f0| 65 63 63 6f 6d 65 6e 64 | 65 64 29 0d 0a 0d 0a 27 |eccomend|ed)....'|
|00000100| 20 41 75 74 68 6f 72 3a | 09 41 6e 64 72 65 61 20 | Author:|.Andrea |
|00000110| 42 65 6e 6f 6e 69 09 09 | 09 20 72 65 76 3a 09 31 |Benoni..|. rev:.1|
|00000120| 2e 32 0d 0a 0d 0a 0d 0a | 73 74 72 69 6e 67 09 69 |.2......|string.i|
|00000130| 6e 70 46 69 6c 65 2c 6f | 75 74 46 69 6c 65 0d 0a |npFile,o|utFile..|
|00000140| 44 65 76 43 6f 6e 09 49 | 62 6d 70 2c 4f 62 6d 70 |DevCon.I|bmp,Obmp|
|00000150| 0d 0a 52 47 42 09 70 69 | 78 0d 0a 66 6c 6f 61 74 |..RGB.pi|x..float|
|00000160| 20 20 09 78 2c 79 2c 6c | 65 76 2c 4c 2c 4f 4c 2c | .x,y,l|ev,L,OL,|
|00000170| 56 2c 50 78 2c 50 78 0d | 0a 0d 0a 69 6e 70 46 69 |V,Px,Px.|...inpFi|
|00000180| 6c 65 3d 22 74 65 73 74 | 69 2e 62 6d 70 22 0d 0a |le="test|i.bmp"..|
|00000190| 6f 75 74 46 69 6c 65 3d | 22 74 65 73 74 6f 2e 62 |outFile=|"testo.b|
|000001a0| 6d 70 22 0d 0a 6c 65 76 | 3d 35 0d 0a 49 62 6d 70 |mp"..lev|=5..Ibmp|
|000001b0| 3d 4c 6f 61 64 49 6d 61 | 67 65 28 69 6e 70 46 69 |=LoadIma|ge(inpFi|
|000001c0| 6c 65 29 0d 0a 4f 62 6d | 70 3d 43 72 65 61 74 65 |le)..Obm|p=Create|
|000001d0| 49 6d 61 67 65 28 49 62 | 6d 70 2e 57 69 64 74 68 |Image(Ib|mp.Width|
|000001e0| 2c 6c 65 76 2a 32 2b 49 | 62 6d 70 2e 48 65 69 67 |,lev*2+I|bmp.Heig|
|000001f0| 68 74 2c 32 34 29 27 49 | 62 6d 70 2e 42 69 74 43 |ht,24)'I|bmp.BitC|
|00000200| 6f 75 6e 74 29 20 0d 0a | 09 09 09 09 20 20 20 27 |ount) ..|.... '|
|00000210| 20 6f 72 20 73 75 62 73 | 74 69 74 75 74 65 20 49 | or subs|titute I|
|00000220| 62 6d 70 2e 42 69 74 43 | 6f 75 6e 74 20 77 69 74 |bmp.BitC|ount wit|
|00000230| 68 20 32 34 0d 0a 0d 0a | 69 66 28 28 49 62 6d 70 |h 24....|if((Ibmp|
|00000240| 2e 42 69 74 43 6f 75 6e | 74 3d 38 29 09 7c 28 49 |.BitCoun|t=8).|(I|
|00000250| 62 6d 70 2e 42 69 74 43 | 6f 75 6e 74 3d 34 29 29 |bmp.BitC|ount=4))|
|00000260| 09 09 27 20 69 66 20 34 | 20 6f 72 20 38 20 62 69 |..' if 4| or 8 bi|
|00000270| 74 20 63 6f 70 79 20 70 | 61 6c 65 74 74 65 09 09 |t copy p|alette..|
|00000280| 09 0d 0a 20 20 46 6f 72 | 20 79 3d 30 20 74 6f 20 |... For| y=0 to |
|00000290| 32 35 35 0d 0a 20 20 20 | 20 20 70 69 78 3d 47 65 |255.. | pix=Ge|
|000002a0| 74 50 61 6c 65 74 74 65 | 28 49 62 6d 70 2c 79 29 |tPalette|(Ibmp,y)|
|000002b0| 0d 0a 20 20 20 20 20 53 | 65 74 50 61 6c 65 74 74 |.. S|etPalett|
|000002c0| 65 28 4f 62 6d 70 2c 79 | 2c 70 69 78 29 0d 0a 20 |e(Obmp,y|,pix).. |
|000002d0| 20 4e 65 78 74 20 79 0d | 0a 45 6e 64 69 66 0d 0a | Next y.|.Endif..|
|000002e0| 0d 0a 50 78 3d 33 2e 31 | 34 2a 36 2f 49 62 6d 70 |..Px=3.1|4*6/Ibmp|
|000002f0| 2e 57 69 64 74 68 0d 0a | 0d 0a 46 6f 72 20 79 3d |.Width..|..For y=|
|00000300| 30 20 74 6f 20 49 62 6d | 70 2e 48 65 69 67 68 74 |0 to Ibm|p.Height|
|00000310| 2d 31 0d 0a 20 20 20 46 | 6f 72 20 78 3d 30 20 74 |-1.. F|or x=0 t|
|00000320| 6f 20 49 62 6d 70 2e 57 | 69 64 74 68 2d 31 0d 0a |o Ibmp.W|idth-1..|
|00000330| 20 20 20 20 20 20 4c 3d | 6c 65 76 2a 63 6f 73 28 | L=|lev*cos(|
|00000340| 78 2a 50 78 29 09 09 09 | 27 20 63 61 6c 63 20 79 |x*Px)...|' calc y|
|00000350| 20 64 69 73 74 6f 72 73 | 69 6f 6e 0d 0a 20 20 20 | distors|ion.. |
|00000360| 20 20 20 56 3d 2e 37 30 | 2d 28 2e 33 30 2a 28 4f | V=.70|-(.30*(O|
|00000370| 4c 2d 4c 29 29 09 09 09 | 27 20 63 61 6c 63 20 64 |L-L))...|' calc d|
|00000380| 69 66 66 65 72 65 6e 74 | 69 61 6c 0d 0a 20 20 20 |ifferent|ial.. |
|00000390| 20 20 20 4f 4c 3d 4c 0d | 0a 20 20 20 20 20 20 70 | OL=L.|. p|
|000003a0| 69 78 3d 47 65 74 50 69 | 78 65 6c 28 49 62 6d 70 |ix=GetPi|xel(Ibmp|
|000003b0| 2c 78 2c 79 29 09 09 09 | 27 20 67 65 74 20 69 6e |,x,y)...|' get in|
|000003c0| 70 75 74 20 69 6d 61 67 | 65 20 70 69 78 65 6c 0d |put imag|e pixel.|
|000003d0| 0a 20 20 20 20 20 20 70 | 69 78 2e 52 65 64 3d 70 |. p|ix.Red=p|
|000003e0| 69 78 2e 52 65 64 2a 56 | 09 09 09 27 20 6d 6f 64 |ix.Red*V|...' mod|
|000003f0| 69 66 79 20 63 6f 6c 6f | 72 0d 0a 20 20 20 20 20 |ify colo|r.. |
|00000400| 20 70 69 78 2e 47 72 65 | 65 6e 3d 70 69 78 2e 47 | pix.Gre|en=pix.G|
|00000410| 72 65 65 6e 2a 56 0d 0a | 20 20 20 20 20 20 70 69 |reen*V..| pi|
|00000420| 78 2e 42 6c 75 65 3d 70 | 69 78 2e 42 6c 75 65 2a |x.Blue=p|ix.Blue*|
|00000430| 56 0d 0a 20 20 20 20 20 | 20 53 65 74 50 69 78 65 |V.. | SetPixe|
|00000440| 6c 28 4f 62 6d 70 2c 78 | 2c 79 2b 4c 2b 6c 65 76 |l(Obmp,x|,y+L+lev|
|00000450| 2c 70 69 78 29 09 09 27 | 20 70 75 74 20 70 69 78 |,pix)..'| put pix|
|00000460| 65 6c 20 6f 6e 20 6f 75 | 74 70 75 74 0d 0a 20 20 |el on ou|tput.. |
|00000470| 20 4e 65 78 74 20 78 0d | 0a 20 20 20 69 66 28 79 | Next x.|. if(y|
|00000480| 25 31 30 3d 30 29 0d 0a | 20 20 20 20 20 20 50 72 |%10=0)..| Pr|
|00000490| 65 76 69 65 77 28 4f 62 | 6d 70 2c 22 4f 75 74 70 |eview(Ob|mp,"Outp|
|000004a0| 75 74 22 2c 35 2c 35 29 | 0d 0a 20 20 20 20 20 20 |ut",5,5)|.. |
|000004b0| 44 73 70 57 68 69 6c 65 | 28 22 46 69 6c 74 65 72 |DspWhile|("Filter|
|000004c0| 69 6e 67 22 2c 31 30 30 | 2f 49 62 6d 70 2e 48 65 |ing",100|/Ibmp.He|
|000004d0| 69 67 68 74 2a 79 29 0d | 0a 20 20 20 65 6e 64 69 |ight*y).|. endi|
|000004e0| 66 0d 0a 4e 65 78 74 20 | 79 0d 0a 44 73 70 57 68 |f..Next |y..DspWh|
|000004f0| 69 6c 65 28 22 22 2c 30 | 29 0d 0a 53 61 76 65 49 |ile("",0|)..SaveI|
|00000500| 6d 61 67 65 28 4f 62 6d | 70 2c 6f 75 74 46 69 6c |mage(Obm|p,outFil|
|00000510| 65 29 0d 0a 44 73 70 4d | 65 73 28 22 45 6e 64 22 |e)..DspM|es("End"|
|00000520| 29 | |) | |
+--------+-------------------------+-------------------------+--------+--------+